package model

import "gorm.io/gorm"

type Passenger struct {
	gorm.Model
	Phone    string
	Status   int
	Password string
	Role     string
}

func (O *Passenger) StatusGet() string {
	switch O.Status {
	case 1:
		return "正常"
	case 2:
		return "封禁"
	}
	return ""
}
